/*
 * 门店信息
 *
 * @Author:    Tibos
 * @Date:      2022-09-03 21:47:28
 * @Wechat:    zhuda1024
 * @Email:     lab1024@163.com
 * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012
 */
import {postRequest, getRequest, postDownload} from '/@/lib/axios';

export const storeApi = {
    // 新建门店 @author 开云
    create: (param) => {
        return postRequest(`/api/store/createStore`,param);
    },

    // 修改门店状态 @author 开云
    updateStatus: (param) => {
        return postRequest(`/api/store/updateStoreStatus`,param);
    },

    // 查询门店详情 @author 开云
    detail: (storeId) => {
        return getRequest(`/api/store/getStoreInfo?storeId=${storeId}`);
    },

    // 分页查询门店模块 @author 开云
    pageQuery: (param) => {
        return getRequest(`/api/store/getStorePageList`, param);
    },

    // 导出门店数据excel @author 卓大
    exportExcel: (param) => {
        return postDownload('/oa/enterprise/exportExcel', param);
    },

    // 编辑门店 @author 开云
    update: (param) => {
        return postRequest(`/api/store/updateStore`, param);
    }
};
